home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presentation Library 1993 Winter
/
The Apple Reference & Presentations Library CD Winter 93 - Partner Edition.7z
/
Image.iso
/
Applications
/
Technical Publishing
/
Aldus PageMaker 4.2
/
Aldus
/
PP1.5.1.RSRC
/
PP1.5.1.RSRC.adf
/
DICT_101
< prev
next >
Wrap
Text File
|
1991-12-09
|
5KB
|
218 lines
/AldusSepsDict 100 dict def
AldusSepsDict begin
/ASD_4array 4 array def
/settransfer systemdict /settransfer get def
/ASD_something_on_page false def
/ASD_inverted? 0 currenttransfer exec 1 eq def
/ASD_setgray
{
systemdict /setgray get exec
}bind def
/setgray
{
ASD_sepink (process black) eq
/AldusDict2 where
{pop AldusDict2 begin AldusVersion 209 ge AldusRev 30 ge and end
{AldusDict2 /AD_NonSepPat get}{false}ifelse
}{false}ifelse or not
{pop 1} if ASD_setgray
}bind def
/setcmykcoloroverprint
{
pop pop pop pop
}bind def
/findcmykcustomcolor
{
5/packedarray where{pop packedarray}{array astore readonly}ifelse
}bind def
/setcmykcolor
{
}def
/setcustomcolor
{
exch aload pop dup ASD_tolower ASD_toprocess?
{pop 4 {4 index mul 4 1 roll} repeat setcmykcolor pop}
{dup ASD_tolower ASD_spotinkoverprint? ASD_setinkoverprint
5 1 roll 4 {pop} repeat ASD_tolower ASD_sepink eq
{1 exch sub ASD_setgray}
{pop 1 ASD_setgray}ifelse
} ifelse
} bind def
/setseparationgray
{
ASD_setgray AldusSepsDict begin
/currentoverprint false def /ASD_inkoverprint false def end
}bind def
/ASD_ucrk .5 def
/ASD_ucrm .31 def
/ASD_ucry .48 def
/ASD_boostk 1.25 def
/ASD_cvt1
{
1 exch sub 3 1 roll
}bind def
/ASD_cvt2
{
0 2 copy lt{exch}if pop 3 1 roll
}bind def
/setrgbcolor
{
ASD_cvt1 ASD_cvt1 ASD_cvt1
3 copy 2 copy gt{exch}if pop 2 copy gt{exch}if pop
ASD_ucrk sub 0 2 copy lt{exch}if pop
4 1 roll
3 {3 index sub 3 1 roll} repeat
1 index ASD_ucry mul sub ASD_cvt2
1 index ASD_ucrm mul sub ASD_cvt2
3 1 roll
4 -1 roll ASD_boostk mul
setcmykcolor
}bind def
/sethsbcolor
{
sethsbcolor currentrgbcolor setrgbcolor
}bind def
/currentoverprint false def
/ASD_inkoverprint false def
/ASD_DCS? false def
/setoverprint
{
AldusSepsDict /currentoverprint 3 -1 roll put
}bind def
/imagemask
{
ASD_draw?
{systemdict /imagemask get exec}
{gsave nulldevice systemdict /imagemask get exec grestore}ifelse
}bind def
/image
{
ASD_DCS?
{systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}
{ASD_sepink (process black) eq
{systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}
{gsave ASD_inverted? {{pop 0}}{{pop 1}}ifelse
settransfer systemdict /image get exec grestore
}ifelse
}ifelse
}def
/customcolorimage
{
aload pop 5 1 roll 4{pop}repeat ASD_tolower ASD_sepink eq
{systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}
{gsave ASD_inverted? {{pop 0}}{{pop 1}}ifelse
settransfer systemdict /image get exec grestore}ifelse
}def
/ASD_invbuf
{
0 1 2 index length 1 sub
{
dup 2 index exch get 255 exch sub 2 index 3 1 roll put
}for
}bind def
/separationimage
{
systemdict /image get exec
}bind def
/stroke
{
ASD_draw? {stroke}{newpath} ifelse
}bind def
/fill
{
ASD_draw? {fill}{newpath} ifelse
}bind def
/eofill
{
ASD_draw? {eofill}{newpath} ifelse
}bind def
/show
{
ASD_draw? {show}{pop} ifelse
}bind def
/ashow
{ASD_draw? {ashow}{pop pop pop} ifelse
}bind def
/widthshow
{
ASD_draw? {widthshow}{pop pop pop pop} ifelse
}bind def
/awidthshow
{
ASD_draw? {awidthshow}{pop pop pop pop pop pop} ifelse
}bind def
/kshow
{ASD_draw? {kshow}{pop pop} ifelse
}bind def
/ASD_toprocess?
{
ASD_candink copy dup
0 1 inks length 1 sub
{inks exch get aload pop 4 -2 roll eq
{exch pop exit}{pop pop dup}ifelse
}for
exch pop
}bind def
/ASD_spotinkoverprint?
{
ASD_candink copy dup
0 1 inks length 1 sub
{inks exch get aload pop 4 -2 roll eq
{pop exit}{pop pop dup}ifelse
}for exch pop
}bind def
/ASD_setinkoverprint
{
AldusSepsDict /ASD_inkoverprint 3 -1 roll put
}bind def
/ASD_processinkoverprint?
{
inks exch get 1 get
}bind def
/ASD_pure?
{
aload pop 0 ne exch 0 ne 3 -1 roll 0 ne 4 -1 roll 0 ne 0 5 1 roll
3 -1 0
{exch true eq
{dup 0 gt{2 add dup -1 roll 1 add exch 1 sub 1 roll}
{pop 1 add}ifelse}
{pop}ifelse}
for
1 eq
}def
/ASD_overprintprocess
{
false ASD_setinkoverprint
dup ASD_pure?
{aload pop mark 5 1 roll
3 -1 0{exch 0 ne
{ASD_processinkoverprint?
{true ASD_setinkoverprint exit}if
}{pop}ifelse
}for cleartomark
}{pop}ifelse
}bind def
/ASD_draw?
{
currentoverprint ASD_inkoverprint or not currentgray 1 ne dup
{AldusSepsDict /ASD_something_on_page true put}if or
}bind def
/ASD_tolower{
ASD_candink copy dup -1 3 1 roll
{3 -1 roll 1 add 3 1 roll dup dup 65 ge exch 90 le and
{exch dup 3 -1 roll 32 add 4 -1 roll dup 5 1 roll exch put}{pop}ifelse
}forall
exch pop
}bind def
/ASD_#copies 1 def
/ASD_candink 100 string def
/ASD_showpage
{
ASD_something_on_page
{userdict /#copies 1 put ASD_#copies{copypage}repeat
AldusSepsDict /ASD_something_on_page false put}if
erasepage
} bind def
/showpage {} def
end